package com.ccp.dev.qbdms.consts;

import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

@Component
public class HighlightConst {
    public static final String preTag = "<font color='#dd4b39'>";
    public static final String postTag = "</font>";
    /**
     * 收藏
     */
    public static final String COLLECTION_YES = "1";
    /**
     * 未收藏
     */
    public static final String COLLECTION_NO = "0";

    /**
     * 推送
     */
    public static final String PUSH_YES = "1";

    /**
     * 已推送
     */
    public static final String PUSH_NO = "0";
    /**
     * 种类兴趣状态显示
     */
    public static final String KNOWLEDGE_CLASS_YES = "1";
    /**
     * 种类兴趣状态不显示
     */
    public static final String KNOWLEDGE_CLASS_NO = "0";






    /**
     * 不定义枚举了，封装一个map，用于获取状态text
     */
    public static final Map<String, String> COLLECTION__MAP;

    static {
        Map map = new HashMap();
        map.put(COLLECTION_YES, "已收藏");
        map.put(COLLECTION_NO, "收藏");
        COLLECTION__MAP = Collections.unmodifiableMap(map);

    }


    /**
     *
     */
    public static final String orgCode = "1734";

    /**
     *可见范围
     */
    public static final String visibleRange = "本所可见";
    /**
     * 是否发送消息
     */
    public static final String pushState = "是";



}
